# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
# Contributor: Christoph W <c w e g e n e r at gmail dot com>

pkgname=python-requests-credssp
_module='requests-credssp'
pkgver=2.0.0
pkgrel=2
pkgdesc="HTTPS CredSSP authentication with the requests library"
url="https://github.com/jborean93/requests-credssp"
depends=('python' 'python-pyopenssl' 'python-requests' 'python-ntlm-auth' 'python-pyspnego')
makedepends=('python-setuptools')
license=('ISC')
arch=('any')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jborean93/requests-credssp/archive/v${pkgver}.tar.gz")
sha512sums=('d11a76bc9577f3054e5955aad513ee27ff2cf3a70414a1d4a81e721a7b40510d45fa33abc5957724ead6c04958a009153f670e154f38f32f2331cc14dd44ee27')

build() {
    cd "${_module}-${pkgver}"
    python setup.py build
}

package() {
    cd "${_module}-${pkgver}"
    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
